/* 变量定义 */

/* 代码块（混合） */

@import url("./fonts/Poppins/Poppins-Regular.ttf");

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins/Poppins-Regular.ttf");
}

* {
  font-family: "Poppins"; /* 设置全局字体样式 */
}
html {
  scroll-behavior: smooth;
}

.navbar {
  background-color: #131313;
  padding: 1rem 8rem;
  z-index: 1000;
  &-brand {
    font-size: 1.4rem;
    font-weight: 700;
  }

  /* n 表示所有的目标元素 */
  #navbarSupportedContent > ul > li:nth-child(n) > a {
    // color: white;
    font-size: 1.1rem;
    padding: 0 0.8rem;
    transition: color 0.5s ease;
    &:hover {
      color: #00bf85;
    }
    &.active {
      color: #00bf85 !important;
    }
  }

  #navbarSupportedContent {
    button {
      background-color: #00bf85;
      font-weight: 600;
      padding: 0.4rem 1.4rem;
      border-radius: 30px;
      &:focus {
        box-shadow: none;
      }
    }
  }
}
header {
 
  .mid {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    // position: relative;
    .video {
      width: 100%;
      height: 100%;
      /* pointer-events CSS 属性指定在什么情况下 (如果有) 某个特定的图形元素可以成为鼠标事件的 target。 */
      /* none 元素永远不会成为鼠标事件的target。 */
      pointer-events: none;
      object-fit: cover;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    .hero {
      position: absolute;
      top: 50%;
      left: 50%;
      text-align: center;
      transform: translate(-50%, -50%);
      p {
        width: 75%;
        font-style: 1.1rem;
        letter-spacing: 0.2px;
        padding-bottom: 1rem;
      }
      a {
        background-color: #00bf85;
        font-weight: 600;
        padding: 0.4rem 1.4rem;
        border-radius: 30px;
        text-decoration: none;
        padding: 0.6rem 1.4rem;
        transition: all 0.2s ease-in;
        &:hover {
          background-color: #fff;
        }
      }
    }
  }
}

.about {
  background-color: rgba(0, 0, 0, 0.918);
  .text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    margin: auto;
    h6 {
      color: #00bf7f;
      font-weight: 800;
      font-size: 1rem;
      letter-spacing: 2px;
    }
    h2 {
      color: #f7f5f4;
      font-weight: 800;
      font-size: 2.7rem;
    }
    p {
      color: #f7f5f4;
      font-weight: 400;
      font-size: 1.1rem;
      letter-spacing: 0.5px;
    }
    a {
      background-color: #00bf85;
      font-weight: 600;
      padding: 0.6rem 1.4rem;
      border-radius: 30px;
      text-decoration: none;
      color: #111;
    }
  }
}

.discover {
  .text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    margin: auto;
    h6 {
      color: #00bf7f;
      font-weight: 800;
      font-size: 1rem;
      letter-spacing: 2px;
    }
    h2 {
      color: #111;
      font-weight: 800;
      font-size: 2.7rem;
    }
    p {
      font-weight: 400;
      font-size: 1.1rem;
      letter-spacing: 0.5px;
    }
    a {
      background-color: #111;
      font-weight: 500;
      padding: 0.6rem 1.4rem;
      border-radius: 30px;
      text-decoration: none;
      color: #fff;
    }
  }
}

.service {
  background-color: #000;
  .one {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 7px;
  }
}

.sign {
  .text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    margin: auto;
    h6 {
      color: #00bf7f;
      font-weight: 800;
      font-size: 1rem;
      letter-spacing: 2px;
    }
    h2 {
      color: #111;
      font-weight: 800;
      font-size: 2.7rem;
    }
    p {
      font-weight: 400;
      font-size: 1.1rem;
      letter-spacing: 0.5px;
    }
    a {
      background-color: #00bf85;
      font-weight: 500;
      padding: 0.6rem 1.4rem;
      border-radius: 30px;
      text-decoration: none;
      color: #111;
    }
  }
}

footer {
  background-color: #111;
  ul.list-unstyled.list-inline.text-center.py-2 > li:nth-child(2) > a {
    background-color: #00bf85;
    font-weight: 600;
    padding: 0.4rem 1.4rem;
    border-radius: 30px;
    border-color: #00bf85;
    &:focus {
      box-shadow: none !important;
    }
  }
}

@media screen and (max-width: 992px) {
  .navbar {
    padding: 1rem !important; /* 必须要加 !important 覆盖 */
  }
  #navbarSupportedContent > ul {
    padding-left: 1rem;
  }
  #navbarSupportedContent > ul > li:nth-child(n) > a {
    padding: 0.8rem 0 !important;
  }
  .mid .hero {
    h2 {
      font-size: 2.5rem;
    }
    p {
      font-size: 1rem;
    }
    a {
      font-size: 0.9rem;
    }
  }
}
